package br.com.news.utils.service.interfaces;

import java.util.List;

import br.com.news.utils.database.beans.EnqueteBean;
import br.com.news.utils.service.exception.ServiceException;

public interface IEnqueteService {

	Long save(EnqueteBean enquete) throws ServiceException;

	void update(EnqueteBean enquete) throws ServiceException;

	List<EnqueteBean> findByQuestion(EnqueteBean questao);
	
	List<EnqueteBean> findPollByStatus(boolean status) throws ServiceException;
	
	List<EnqueteBean> findPollActive() throws ServiceException;
	
	List<EnqueteBean> findAll() throws ServiceException;

	List<EnqueteBean> lastPoll() throws ServiceException;

}
